package com.hwadee.job.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hwadee.job.dao.CompanyMapper;
import com.hwadee.job.dao.StudentInfoMapper;
import com.hwadee.job.dao.UserMapper;
import com.hwadee.job.entity.Company;
import com.hwadee.job.entity.StudentInfo;
import com.hwadee.job.entity.User;
import com.hwadee.job.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserMapper userMapper;
	@Autowired
	private CompanyMapper companyMapper;
	@Autowired
	private StudentInfoMapper studentInfoMapper;
	
	@Override
	public User selectByName(String uname) {
		// TODO Auto-generated method stub
		return userMapper.selectByName(uname);
	}

	
	@Override
	public int insert(User record) {
		// TODO Auto-generated method stub
		return userMapper.insert(record);
	}


	@Override
	public int insertSelective(Company record) {
		// TODO Auto-generated method stub
		return companyMapper.insertSelective(record);
	}


	@Override
	public int insertStudent(StudentInfo record) {
		// TODO Auto-generated method stub
		return studentInfoMapper.insertStudent(record);
	}

	

	
	
	
}
